
#ifndef SCANPIT_HH_
# define SCANPIT_HH_

# include "parser.hh"


# ifndef YY_DECL
#define YY_DECL                                                    \
  keeper_server::Parser::token_type keeper_server::Scanner::yylex( \
      keeper_server::Parser::semantic_type* yylval,                \
      keeper_server::Parser::location_type*,                       \
      keeper_server::MySQLParser& parser, keeper_server::MySQLStatement& stmt)
# endif


# ifndef __FLEX_LEXER_H
#  define yyFlexLexer parseFlexLexer
#  include <FlexLexer.h>
#  undef yyFlexLexer
# endif

namespace keeper_server {
class Scanner : public parseFlexLexer {
 public:
  Scanner();

  virtual ~Scanner();

  virtual Parser::token_type yylex(Parser::semantic_type* yylval,
                                   Parser::location_type* l,
                                   MySQLParser& parser, MySQLStatement& stmt);

  void set_debug(bool b);
};
}  // namespace keeper_server

#endif // SCANPIT_HH_
